<style type="text/css">
.storelogo img{width:3.2rem;height:3.2rem}
.merchgroup .store-star {padding:0.1rem 0 0.2rem 0;font-size:0.55rem;line-height:1rem}
.merchgroup .store-star img{height:0.66rem}
.star-on,.star-off{position:absolute;top:1rem;left:0;overflow:hidden}
.star-rate {margin-left:0.2rem;color:#19b955}
.store-distance{float:right;color:#999}
.store-moneylimit{font-size:0.55rem}
.delete{color: #bebebe;text-decoration:line-through;font-size:0.55rem}
.fui-picturew .item .vote-number{
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    padding: 0 10px;
    -webkit-border-bottom-right-radius: 5px;
    -moz-border-radius-bottomright: 5px;
    border-bottom-left-radius: 5px;
    height: 25px;
    line-height: 25px;
    background-color: #000;
    background-color: rgba(0,0,0,0.5);
    color: #FFF;
    text-align: center;
    font-size: 12px;
}
.fui-picturew .item .vote-like{
	float: right;
    width: 28px;
    height: 28px;
    background: #fff;
    line-height: 28px;
    color: #7800ff;
    font-size: 12px;
    text-align: center;
    border: 1px solid #7800ff;
    border-radius: 28px;
    position: absolute;
    bottom: -20px;
    right: 5px;
}
.voto-searchbar {margin:0 auto;margin-top:10px;width:94%;height:40px;border:#CCC 1px solid;border-radius:4px;background:#FFF}
.voto-searchbar .inputtxt {padding-left:2%;width:65%;height:38px;line-height:38px;border:0;font-size:14px}
.voto-searchbar .divsub {float:right;margin-top:5px;width:30%;height:30px;border-left:#CCC 1px solid;color:#999;text-align:center;font-size:15px;line-height:30px}
.num_box{position:relative;overflow:hidden;width:100%;}
.num_box .num_box_ul{overflow:hidden;padding:15px 0;width:100%;line-height:22px;background-color: #f9f9f9;
    display: block;
    border-bottom: 1px #EFEFEF solid;}
.num_box .num_box_ul li{float:left;width:33%;border-right:1px solid #CCC;list-style:none}
.num_box .num_box_ul li:last-child{border:none}
.num_box .num_box_ul li span{display:block;width:100%;color:#707070;text-align:center;font-size:14px;line-height:20px}
.num_box .num_box_ul li span.text{margin:0;padding:0;background-color:transparent;box-shadow:none;font-size:12px}
.num_box .join_us{display:block;margin:10px auto;width:94%;height:40px;border-radius:4px;background:#FF4238;text-align:center;line-height:40px}
.num_box .join_us a:link, .num_box .join_us a:visited{display:block;color:#FFF;text-decoration:none;font-size:18px}
.time-item {margin:0 auto;width:100%;text-align:center;}
.time-item strong{border:#CCC 1px solid;background:#FFF;color:#999;line-height:40px;font-size:14px;padding:5px 10px;margin:0 5px;border-radius:3px;box-shadow:1px 1px 1px rgba(0,0,0,0.1);}
.day{line-height:35px;color:#999;font-size:12px;}
.absolute-r{
	float: right;
    position: relative;
    right: 5px;
	bottom:0
}
</style>
<div class="fui-page order-create-page fui-page-current"  style="background:#fff">
	<div class="fui-content">
		<div class="num_box">
			<ul class="num_box_ul">
				<li style="width:100%"><span class="text"><i class="icon jinyunicon icon-remind1"></i> 待审核群</span> <span>{{pagedata.sum || 0}}</span></li>
			</ul>
		</div>
		<div class="fui-picturew row-2" id="goodslist" style="margin-top:0.7rem">
                <div ng-repeat="item in pagedata.list" class="item" style="margin-bottom:0.5rem">
                    <div style="margin: 0 5px;box-shadow: 0 1px 1px #ccc;">
						<div class="image">
							<div class="vote-number">{{$index + 1}}号</div>
							<img style="width:100%;height:150px" ng-click="access_json('jy_vote/o_detail/main/id='+item.id)" ng-src="{{tomedia(item.thumb) || '../core/resource/images/nopic.jpg'}}">
							<div ng-click="access_json('jy_vote/o_detail/main/id='+item.id)" class="pics">{{item.picsnum || 0}}P</div>
							<div class="absolute-r"><span class="jylabel jylabel-red active" href="javascript;" ng-click="pagedata.pass(item.id);" style="margin-right:0.2rem">通过</span><span class="jylabel jylabel-red active" href="javascript;" ng-click="pagedata.unpass(item.id);">忽略</span></div>
						</div>
						
						<div ng-click="access_json('jy_vote/o_detail/main/id='+item.id)" class="title overflow-h" style="color:#000;font-size:0.65rem;padding:0.2rem">{{item.title}}</div>
					</div>
				</div>
		</div>
		<div ng-show="loading" class='infinite-loading'><span class='fui-preloader'></span><span style="margin-left:1.5rem"> 正在加载...</span></div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>

<script>
//获取关注
scope.pagedata.pass=function(id){
	var params={
		data:{'id':id},
		op:'pass',
		callback:function(res){
			console.log(res);
			scope.message('已通过该群！');
			scope.$evalAsync();
			window.location.reload();
		}
	};
	scope.post_json(params);
}
scope.pagedata.unpass=function(id){
	var params={
		data:{'id':id},
		op:'unpass',
		callback:function(res){
			console.log(res);
			scope.message('已忽略该群！');
			scope.$evalAsync();
			window.location.reload();
		}
	};
	scope.post_json(params);
}
</script>
<script>
scope.loading = true;  //状态标记
scope.isnodata = false;
scope.pagedata.list =[];
//滚动加载
var page = 1;
scope.pagedata.getlist=function(){
		scope.get('jy_vote/shenhe/getlist/page='+page,
				function(data){
				if(data.error !=1){
								for (var i=0;i<data.list.length;i++){
									scope.pagedata.list.push(data.list[i]);
								}
								if(page >1){
									$("#goodslist").animate({scrollTop:0},300);
								}
								if(data.list.length<1){
									scope.isnodata=true;
								}
								page++;
								scope.loading = false;
								scope.$evalAsync();
							}else{
								console.log('error');
							};
		});
}
scope.pagedata.getlist();
window.addEventListener('scroll', function () {
    if(!scope.isnodata && !scope.loading &&  window.pageYOffset + window.innerHeight >= document.documentElement.scrollHeight){
        scope.loading = true;  //状态标记
		scope.pagedata.getlist();
     }
})
</script>